<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Hello 欢迎使用班级管理系统</title>
</head>
<body>
	Hello <shiro:principal/>  欢迎使用班级管理系统<br/>
	你当前的身份为: 
	<shiro:hasRole name="teacher">teacher</shiro:hasRole> 
	<shiro:hasRole name="monitor">monitor</shiro:hasRole> 
	<shiro:guest>游客</shiro:guest>
	<br/><br/><br/>
	
	以下为路径权限配置: <br/>
	/login=anon  没有限制<br/>
	/class*=authc 需要登陆<br/>
	/teacher*=roles[teacher] 需要拥有 teacher 角色<br/>
	/student/view=*perms[student:view] 需要具有 student:view 权限的用户<br/>
	
	<br/><br/><br/>
	/login <a href="login.jsp">登陆</a><br/>
	/class <a href="class.jsp">测试</a><br/>
	/teacher <a href="teacher.jsp">测试</a><br/>
	/student/view <a href="student/view.jsp">测试</a>
</body>
</html>